package com.qh.book.enums;
/**
 * 
 * @author Wine
 *
 */
public enum ResultEnum {

	SCUUESS(0,"OK"),
	BOOK_ONSALE_SUCCESS(1,"书籍上架成功"),
	BOOK_ONSALE_FAIL(2,"书籍上架失败"),
	BOOK_OFFSALE_SUCCESS(3,"书籍下架成功"),
	BOOK_OFFSALE_FAIL(4,"书籍下架失败"),
	BOOK_NOT_EXIST(5,"书籍不存在"),
	BOOK_NOT_ENOUGH(6,"书籍库存不足"),
	ORDER_NOT_EXIST(7,"订单不存在"),
	ORDER_CANCEL_FAIL(8,"订单取消失败"),
	ORDER_STATUS_ERROR(9,"订单状态不正确"),
	PARM_FAIL(10,"参数错误"),
	IMGS_ISEMPTY(11,"图片加载失败"),
	CAR_ISEMPTY(12,"购物车为空"),
	ORDERDETAIL_ISEMPTY(12,"订单明细为空"),
	;
	private Integer code;
	
	private String msg;

	public Integer getCode() {
		return code;
	}

	public String getMsg() {
		return msg;
	}


	private ResultEnum(Integer code, String msg) {
		this.code = code;
		this.msg = msg;
	}
	
	
}
